<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script language="JavaScript">
	function saveObj(id){
		var url = "";
		if(id){
			url = '${request.contextPath}/xadmin/work/editDoc.do?docid='+id;
		}else{
			url = '${request.contextPath}/xadmin/work/addDoc.do';
		}
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
				return $(this).form('validate')
		    },  
		    success:function(data){  
				window.top.closemodalwindow(true,data);
		    }  
		});
	}
	function closeWin(){
		window.top.closemodalwindow(false);
	}
	$(function(){
		if('${obj.classid!}'!=0){
			$("#classid").combotree('setValue','${obj.classid!}');
		}
	})
</script>

</head>
<body>
<div class="easyui-panel" data-options='fit:true,border:false'> 
<form align="center" method="post" enctype='multipart/form-data'>
<#if obj.docid?exists>
<input style="display:none;" name="docid" value="${obj.docid!}"/>
</#if>
<table align=center border="0" width="95%"  cellspacing="0" cellpadding="0" class="table_all">
<tr> 
	<td width="100" height="35" align="right" class="td_table_1">文档类别：</td>
	<td width="685" class="td_table_2">&nbsp;
		<input id="classid" class="easyui-combotree" name="classid" style="width:200px;" panelHeight="130" data-options="url:'listDocClassForTree.do'" />
	</td>
</tr>
<tr> 
	<td width="100" height="35" align="right" class="td_table_1">文档名称：</td>
	<td width="685" class="td_table_2">&nbsp;
		<input name="name" class="easyui-validatebox" required="true" type="TEXT" maxlength=60  style="width:200px;" value="${obj.name!}">
	</td>
</tr>
<tr> 
	<td width="100" height="35" align="right" class="td_table_1">文档状态：</td>
	<td width="685" class="td_table_2">&nbsp;
		<select size="1" name="zt"  style="background-color:#FFF;"  >
			<option <#if obj.zt?exists && obj.zt?string=='0'>selected</#if> value="0">不共享</option>
			<option <#if obj.zt?exists && obj.zt?string=='1'>selected</#if> value="1">部门共享</option>
			<option <#if obj.zt?exists && obj.zt?string=='2'>selected</#if> value="2">公司共享</option>
		</select>
	</td>
</tr>
<#if obj.docid?exists>
<tr> 
	<td width="100" height="35" align="right" class="td_table_1">原文档：</td>
	<td width="685" class="td_table_2">
		&nbsp;
		<input class="easyui-validatebox" readonly=true type="TEXT" maxlength=60  style="width:200px;" value="${obj.content!}">
	</td>
</tr>
</#if>
<tr> 
	<td width="100" height="35" align="right" class="td_table_1">上传文档：</td>
	<td width="685" class="td_table_2">
		&nbsp;
		<input type="file" name="file" value="浏览">
	</td>
</tr>
</table>
</form>
</div>
</body>
</html>